package com.zhibang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhibang.dto.AccountxtzhDTO;
import com.zhibang.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhibang.vo.AccountAddVO;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
* @author lewin
* @description 针对表【account(账号表)】的数据库操作Service
* @createDate 2025-03-05 09:18:16
*/
public interface AccountService extends IService<Account> {
    IPage<AccountxtzhDTO> selectAccountInfo(AccountxtzhDTO query, IPage page);

    boolean updatePasswordById(Integer id, String newPassword);


    int addAccount(AccountAddVO account);
    int updateAccount(AccountAddVO account);
    Account getAccountById(Integer id);
    boolean updateStateById(Integer id, Integer state);
}
